using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Betarium.PotonEditor
{
    public partial class TextInputForm : Form
    {
        public TextInputForm()
        {
            InitializeComponent();
        }

        private Font m_TargetFont;

        public Font TargetFont
        {
            get { return m_TargetFont; }
            set { m_TargetFont = value; }
        }
	
        private void fontDialog1_Apply(object sender, EventArgs e)
        {

        }

        private void buttonFont_Click(object sender, EventArgs e)
        {
            if (m_TargetFont != null)
            {
                fontDialog1.Font = m_TargetFont;
            }
            if (fontDialog1.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            m_TargetFont = fontDialog1.Font;
            this.textBox.Font = (Font)m_TargetFont.Clone();
        }

        private void TextInputForm_Load(object sender, EventArgs e)
        {
            this.textBox.Font = m_TargetFont;
        }
    }
}